home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VQTEXTNT.S < prev    next >
Text File  |  1993-03-26  |  1KB  |  39 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Inquire text extent.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _vqt_extent
  11. _vqt_extent:
  12. ;    .cargs    #8,handle.w,string.l,extent.l
  13.  
  14. handle      =         8
  15. string      =         10
  16. extent      =         14
  17.  
  18.           link        a6,#0
  19.  
  20.           move.l    string(a6),a0        ;* Get pointer to string.
  21.           jsr        vstr_stack            ;* go convert ascii->ADE
  22.  
  23. ;          VContrl    #116,,,d0
  24.           move.w    handle(a6),-(sp)    ; contrl[6]
  25.           clr.l     -(sp)                ; contrl[5,4]
  26.           move.w    d0,-(sp)            ; contrl[3]
  27.           subq.l    #2,sp                ; contrl[2]
  28.           clr.w     -(sp)                ; contrl[1]
  29.           move.w    #116,-(sp)            ; contrl[0]
  30.  
  31.           move.l    extent(a6),-(sp)    ;* -> ptsout
  32.           subq.l    #8,sp                ;* -> intout, ptsin
  33.           move.l    a0,-(sp)            ;* -> intin
  34.           pea        16(sp)                ;* -> contrl
  35.  
  36.           jmp        vdicall
  37.  
  38.           end
  39.